<!--
  Generated template for the AssistantlixiangPage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>

  <ion-navbar>
    <ion-title>项目立项申请</ion-title>
  </ion-navbar>

</ion-header>


<ion-content>
  <ion-list class="apply">
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>申请人</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.applyapplymember" readonly="true"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>申请日期</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.applytime" readonly="true"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>申请公司</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.applycompany.name" readonly="true" tappable (click)="applycompanyselect()"></ion-input>
      <i class="iconfont icon-sousuo" item-end tappable (click)="applycompanyselect()"></i>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>申请部门</ion-label>
      <ion-input [(ngModel)]="inputViewModel.applydepartment.name" readonly="true" tappable (click)="applydepartselect()">
      </ion-input>
      <i class="iconfont icon-sousuo" item-end tappable (click)="applydepartselect()"></i>
    </ion-item>
    <ion-item class="sitem">
			<ion-label fixed>
				<span>*</span>项目名称</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyapplytitle"></ion-input>
    </ion-item>
    <ion-item class="sitem">
			<ion-label fixed>
				<span>*</span>预计所需金额</ion-label>
			<ion-input type="text" [(ngModel)]="inputViewModel.applyapplyamount"></ion-input>
    </ion-item>
    <ion-item class="sitem" >
			<ion-label fixed>
				<span>*</span>主办部门</ion-label>
			<ion-input [(ngModel)]="inputViewModel.applydemainpartment.name" readonly="true" tappable (click)="applydepartselect(3)">
			</ion-input>
			<i class="iconfont icon-sousuo" item-end tappable (click)="applydepartselect(3)"></i>
		</ion-item>
		<ion-item class="sitem">
			<ion-label fixed>
				<span>*</span>协办部门</ion-label>
			<ion-input [(ngModel)]="inputViewModel.applydesubpartment.name" readonly="true" tappable (click)="applydepartselect(4)">
			</ion-input>
			<i class="iconfont icon-sousuo" item-end tappable (click)="applydepartselect(4)"></i>
		</ion-item>
    <ion-item class="titem">
      <ion-label stacked>
        <span>*</span>申请理由</ion-label>
      <ion-textarea [(ngModel)]="inputViewModel.applychangenote"></ion-textarea>
    </ion-item>
    <ion-item class="sitem">
			<ion-label fixed>
				<span>*</span>费用分类</ion-label>
			<ion-select [(ngModel)]="inputViewModel.applyamounttype" interface="popover" [compareWith]="compareselect">
				<ion-option *ngFor="let item of inputSelectView.applyoaamountDefItems" [value]="item">{{item.name}}</ion-option>
			</ion-select>
		</ion-item>
    <ion-item class="sitem">
			<ion-label fixed>
				<span>*</span>经办人</ion-label>
			<ion-input [(ngModel)]="inputViewModel.applyahandlemember.name" readonly="true" tappable (click)="applyapplymemberselect(3)">
			</ion-input>
			<i class="iconfont icon-sousuo" item-end tappable (click)="applyapplymemberselect(3)"></i>
		</ion-item>
    <ion-item class="titem">
      <ion-label stacked>
        <span>*</span>备注</ion-label>
      <ion-textarea [(ngModel)]="inputViewModel.applynote"></ion-textarea>
    </ion-item>
    <!--提交相关 -->
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>当前节点</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.applynownode" readonly="true"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>当前处理人</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.applynowmember" readonly="true"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>下一步审批节点</ion-label>
      <ion-input type="text" [(ngModel)]="inputViewModel.applynextnode" readonly="true"></ion-input>
    </ion-item>
    <ion-item class="sitem">
      <ion-label fixed>
        <span>*</span>下一步审批人</ion-label>
      <ion-input [(ngModel)]="inputViewModel.applynextman.name" readonly="true" tappable (click)="applyapplymemberselect()">
      </ion-input>
      <i class="iconfont icon-sousuo" item-end tappable (click)="applyapplymemberselect()"></i>
    </ion-item>

    <!--执行相关 -->
    <ion-item class="aitem">
      <button ion-button (click)="applyapplydone()">提交</button>
    </ion-item>
  </ion-list>
</ion-content>
